package com.ar4j.pagination;

/**
 * Defines the interface for a sortable field. The field must be able to provide a bean field name to sort by and the sort direction.
 */
public interface ISortField {
  public static enum SortDirection {
    ASCENDING,
    DESCENDING
  }
    
  /**
   * @return the name of the field in the bean to sort by
   */
  String getFieldName();
  
  /**
   * @return the direction of the sort (ascending/descending)
   */
  SortDirection getSortDirection();
}
